Optimal. Leaf size=145 \[ -\frac {c^3 \tan (e+f x) \log (\sec (e+f x)+1)}{a^2 f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}-\frac {c^2 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{a f (a \sec (e+f x)+a)^{3/2}}+\frac {c \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{2 f (a \sec (e+f x)+a)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {3954, 3952} \[ -\frac {c^3 \tan (e+f x) \log (\sec (e+f x)+1)}{a^2 f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}-\frac {c^2 \tan (e+f x) \sqrt {c-c \sec (e+f x)}}{a f (a \sec (e+f x)+a)^{3/2}}+\frac {c \tan (e+f x) (c-c \sec (e+f x))^{3/2}}{2 f (a \sec (e+f x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3952
Rule 3954
Rubi steps
\begin {align*} \int \frac {\sec (e+f x) (c-c \sec (e+f x))^{5/2}}{(a+a \sec (e+f x))^{5/2}} \, dx &=\frac {c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2}}-\frac {c \int \frac {\sec (e+f x) (c-c \sec (e+f x))^{3/2}}{(a+a \sec (e+f x))^{3/2}} \, dx}{a}\\ &=-\frac {c^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{a f (a+a \sec (e+f x))^{3/2}}+\frac {c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2}}+\frac {c^2 \int \frac {\sec (e+f x) \sqrt {c-c \sec (e+f x)}}{\sqrt {a+a \sec (e+f x)}} \, dx}{a^2}\\ &=-\frac {c^3 \log (1+\sec (e+f x)) \tan (e+f x)}{a^2 f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {c^2 \sqrt {c-c \sec (e+f x)} \tan (e+f x)}{a f (a+a \sec (e+f x))^{3/2}}+\frac {c (c-c \sec (e+f x))^{3/2} \tan (e+f x)}{2 f (a+a \sec (e+f x))^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.39, size = 178, normalized size = 1.23 \[ \frac {c^2 \cot \left (\frac {1}{2} (e+f x)\right ) \sqrt {c-c \sec (e+f x)} \left (6 \log \left (1+e^{i (e+f x)}\right )-3 \log \left (1+e^{2 i (e+f x)}\right )+\left (8 \log \left (1+e^{i (e+f x)}\right )-4 \log \left (1+e^{2 i (e+f x)}\right )\right ) \cos (e+f x)+\left (2 \log \left (1+e^{i (e+f x)}\right )-\log \left (1+e^{2 i (e+f x)}\right )\right ) \cos (2 (e+f x))-4\right )}{2 a^2 f (\cos (e+f x)+1)^2 \sqrt {a (\sec (e+f x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.10, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (c^{2} \sec \left (f x + e\right )^{3} - 2 \, c^{2} \sec \left (f x + e\right )^{2} + c^{2} \sec \left (f x + e\right )\right )} \sqrt {a \sec \left (f x + e\right ) + a} \sqrt {-c \sec \left (f x + e\right ) + c}}{a^{3} \sec \left (f x + e\right )^{3} + 3 \, a^{3} \sec \left (f x + e\right )^{2} + 3 \, a^{3} \sec \left (f x + e\right ) + a^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.08, size = 281, normalized size = 1.94 \[ -\frac {\left (2 \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right )+2 \ln \left (-\frac {-\sin \left (f x +e \right )-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right )+4 \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+4 \cos \left (f x +e \right ) \ln \left (-\frac {-\sin \left (f x +e \right )-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-2 \cos \left (f x +e \right )+2 \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+2 \ln \left (-\frac {-\sin \left (f x +e \right )-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+3\right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {5}{2}} \left (\cos ^{3}\left (f x +e \right )\right ) \sqrt {\frac {a \left (1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}}}{2 f \sin \left (f x +e \right )^{5} a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 133, normalized size = 0.92 \[ -\frac {\frac {2 \, c^{\frac {5}{2}} \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right )}{\sqrt {-a} a^{2}} + \frac {2 \, c^{\frac {5}{2}} \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )}{\sqrt {-a} a^{2}} - \frac {\frac {2 \, \sqrt {-a} c^{\frac {5}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {\sqrt {-a} c^{\frac {5}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}}{a^{3}}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^{5/2}}{\cos \left (e+f\,x\right )\,{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________